CRPEJob::GetJobStatus
Syntax
GetJobStatus () RETURNING SMALLINT, CRPEJobInfo
Remarks
This method gets the current status of the print job. You can use it in a number of programming situations, for example:
- to trigger error messages, (when a print job fails due to insufficient memory, insufficient disk space, etc.),
- to trigger screen displays (hourglass, series of graphics, etc.) that confirm to the user that work is in progress, or
- to find out whether a job was cancelled by the user after CRPEJob::StartJob was called.
Return Values
SMALLINT
| Returns one of the following values according to the status of the current print job:
|
| Value
| Meaning
|
| -1
| The Crystal Report Engine has not been opened, or a print job has not been established.
|
| PEP_JOBNOTSTARTED
| The job has not been started.
|
| PEP_JOBINPROGRESS
| The job is currently in progress.
|
| PEP_JOBCOMPLETED
| The job has completed successfully.
|
| PEP_JOBFAILED
| The job has failed.
|
| PEP_JOBCANCELLED
| The job has been cancelled by the user.
|
CRPEJobInfo
| Class CRPEJobInfo.
|
Related Topics
PEGetJobStatus